//
//  HTSongModel.m
//  HeartTravel
//
//  Created by lanou on 15/10/29.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "HTSongModel.h"

@implementation HTSongModel

//- (void)setValue:(id)value forKey:(NSString *)key {
//    
//    if ([key isEqualToString:@"auditionList"]) {
////        _url = [value[0] objectForKey:@"url"];
//        for (NSDictionary *dict in value) {
//            if (_url.length == 0) {
//                _url = dict[@"url"];
//            }
//        }
//    } else {
//        [super setValue:value forKey:key];
//    }
//}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"auditionList"]) {
        for (NSDictionary *dict in value) {
            if (_url.length == 0) {
                _url = dict[@"url"];
            }
        }
    }
}


@end
